
/*
 * ************************************************************************
 * 本文件归属于西安协同时光软件有限公司，未经许可，不得擅自使用、拷贝和修改 项目组:金堆城钼业股份有限公司科研项目管理信息系统项目组 版 本: 1.0 日
 * 期：04/25/2010 作 者： Administrator
 * ************************************************************************
 */
package com.application.projectTeams.service;

import java.util.List;

import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.projectTeams.entity.Projectteams;
import com.application.projectTeams.struts.form.ProjectteamsForm;
import com.application.projectTeams.dao.ProjectteamsDAO;

/**
 * Copyrights 1997-2008 西安协同时光软件有限公司<br />
 * Description:ProjectteamsService<br />
 * Version:V0.1<br />
 * Author: Code Generator <br />
 * History: <br />
 * 04/25/2010 SyncBase Code Generator initial version.
 */
public class ProjectteamsService extends BaseService {
	private ProjectteamsDAO projectteamsDAO;

	public ProjectteamsDAO getProjectteamsDAO() {
		return this.projectteamsDAO;
	}

	public void setProjectteamsDAO(ProjectteamsDAO projectteamsDAO) {
		this.projectteamsDAO = projectteamsDAO;
	}

	public Projectteams getProjectteams(Projectteams projectteams) {
		return (Projectteams) this.getBaseDao().queryByPk(projectteams, projectteams.getId());
	}

	public Integer getAllCountProjectteams(ProjectteamsForm projectteamsForm) {
		return this.projectteamsDAO.getAllCountProjectteams(projectteamsForm);
	}

	public List<Projectteams> searchProjectteams(ProjectteamsForm projectteamsForm, PageBean pageBean) throws Exception {
		List<Projectteams> projectteamsList = (List) this.projectteamsDAO.searchProjectteams(projectteamsForm, pageBean);
		return projectteamsList;
	}

	public void deleteProjectteamss(ProjectteamsForm projectteamsForm) {
		this.projectteamsDAO.deleteProjectteamss(projectteamsForm);
	}

	public Projectteams getUpdateProjectteams(String id) {
		return this.projectteamsDAO.getUpdateProjectteams(id);
	}

	public void deleteProjectteamssByWorkSheetID(String workSheetsID) {
		this.projectteamsDAO.deleteProjectteamssByWorkSheetID(workSheetsID);
	}

	public List getProjectTeamsByWorkSheetsID(Object workSheetID) {
		return this.projectteamsDAO.getProjectTeamsByWorkSheetsID(workSheetID);
	}
	public List getProjectByResearcher(String id){
		return this.projectteamsDAO.getProjectByResearcher(id);
	}
}
